package cn.shengongying.api.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author : RXK
 * Date : 2021-7-24 18:02
 * Code Less Think More
 * Desc:
 */
@Getter
@Setter
public class PositionTopStatusInDTO extends IdInDTO{
    @ApiModelProperty(value = "置顶状态(0:否；1：置顶)")
    @NotNull(message = "状态值不能为空")
    @Min(value = 0,message = "输入正确的状态值")
    @Max(value = 1,message = "输入正确的状态值")
    private Integer topStatus;
}
